package com.study.packet;

import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @ClassName: MessageProtocol
 * @Description:
 * @Date 2024/04/29 16:00
 * @Author songshaoqiu
 **/
public class MessageProtocol{
        //消息长度
    private Integer length;
    //消息内容
    private byte[] content;

    public MessageProtocol() {
    }

    public MessageProtocol(Integer length, byte[] content) {
        this.length = length;
        this.content = content;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }
}
